let User = require('../../db/userSchema');

module.exports = async(req, res) => {
    var relData = await User.findOne({ "_id": req.query.id });
    res.render('./admin/edituser.ejs', { userData: relData });
}